MAKE := make

all: sync

sync: $(default_sync)
ifeq (Linux,$(shell uname))
	@echo Wow, you are using Linux\!
else
	@echo Heihei, you are not using Linux
	$(MAKE) sync-csie
endif
	$(MAKE) sync-local

sync-google:
	./repo-sync.sh -r google

sync-csie:
	./repo-sync.sh -r csie

sync-local:
	./repo-sync.sh -r local -s

dump: dump-csie

dump-google:
	./repo-dump.sh -r google -l google -uzeroxia -px7q5t9e7

dump-csie:
	./repo-dump.sh -r csie -l csie -uzeroxia -pzeroxia

clean:
	-rm -fr *.csv *.dat *.tmp

purge:
	-rm -fr *.csv *.dat out out.* *.tmp

test:
ifeq ($(strip $(foo)),)
	@echo empty
else
	@echo non-empty
endif
	@echo foo is \"$(foo)\"
	@echo stripped foo is \"$(strip $(foo))\"

# vim: set filetype=make noexpandtab:
